<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>查看套餐</title>
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css">
    <link rel="stylesheet" href="../../static/css/style.css" th:href="@{/css/style.css}"/>
</head>
<body>
<div th:replace="~{common/layout :: header}"></div>
<div th:replace="~{common/layout :: sidebar}"></div>
<div class="container mt-5">
    <h1 class="mb-4">查看套餐</h1>
    <div>
        <table class="table table-bordered">
            <tr>
                <th>套餐编号</th>
                <td th:text="${setmeals.smId}"></td>
            </tr>
            <tr>
                <th>套餐名称</th>
                <td th:text="${setmeals.name}"></td>
            </tr>
            <tr>
                <th>套餐类型</th>
                <td th:text="${setmeals.type == 1 ? '男士套餐' : '女士套餐'}"></td>
            </tr>
            <tr>
                <th>套餐价格</th>
                <td th:text="${setmeals.price}"></td>
            </tr>
        </table>
        <h2 class="mt-4">检查项</h2>
        <table class="table table-bordered">
            <thead>
            <tr>
                <th>检查项名称</th>
                <th>检查项内容</th>
                <th>意义</th>
                <th>备注</th>
            </tr>
            </thead>
            <tbody>
            <tr th:each="checkitemDTO : ${setmeals.checkitems}">
                <td th:text="${checkitemDTO.checkitem.ciName}"></td>
                <td th:text="${checkitemDTO.checkitem.ciContent}"></td>
                <td th:text="${checkitemDTO.checkitem.meaning}"></td>
                <td th:text="${checkitemDTO.checkitem.remarks}"></td>
            </tr>
            </tbody>
        </table>
    </div>
    <a href="/setmeals" class="btn btn-default">返回列表</a>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.5.4/dist/umd/popper.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</body>
</html>
